# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=policyd-spf-fs
pkgver=23
pkgrel=8
pkgdesc="Policy daemon for checking SPF records in postfix"
url="https://www.freestone.net/software/policyd-spf-fs/"
arch="all"
license="LGPL-2.1-or-later OR BSD-2-Clause"
makedepends="libspf2-dev"
source="https://www.freestone.net/ftp/policyd-spf-fs/policyd-spf-fs_$pkgver.tar.gz
	format-security.patch
	policyd-spf-fs-localpolicy-fix.patch
	fix-makefile.patch
	"

builddir="$srcdir"/${pkgname}_$pkgver
options="!check"

build() {
	make CFLAGS+=-DHAVE_NS_TYPE LIBS="-lspf2"
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	make PREFIX="$pkgdir"/usr install
}

sha512sums="
2288ea42f25a20261a24ac33dc0ade0e6bdb4266a1f14db5d2cc2a0a5929aa0884c7e55578039d6205c6bb467e351a75231619a48bd0db80ed8c9988bde390f7  policyd-spf-fs_23.tar.gz
ca7956954c8d8344e473a95eaa680b5f14da8656ef3904d60a56c426e109e051ec923b1c9ee990d664dd984d6e8923c530ba6193b89c0a416ad5a4cc9bd59f92  format-security.patch
89a90f717538f0440d7ad98a979f3b3209dc1d85751786dc5eae867c009db8902a65694614e105aea4ed79c64a8d57cae8fc9f8902b01fdd395bd95e50e53f78  policyd-spf-fs-localpolicy-fix.patch
b2df1dc4e7982a2e9766f2d80d1a60d9f7a5d5eea9dbb8e8c64cab9c8aebbfb62f786e1f1f5d0e946f28d77009a4c50fd18ac9fac08767aaa888e321ddd308d5  fix-makefile.patch
"
